<html xmlns:tomboy="http://beatniksoftware.com/tomboy" xmlns:link="http://beatniksoftware.com/tomboy/link" xmlns:size="http://beatniksoftware.com/tomboy/size"><head><META http-equiv="Content-Type" content="text/html; charset=utf-8"><title>install nodejs</title><style type="text/css">
        
	body {  }
	h1 { font-size: xx-large;
     	     font-weight: bold;
     	     border-bottom: 1px solid black; }
	div.note {
		   position: relative;
		   display: block;
		   padding: 5pt;
		   margin: 5pt; 
		   white-space: -moz-pre-wrap; /* Mozilla */
 	      	   white-space: -pre-wrap;     /* Opera 4 - 6 */
 	      	   white-space: -o-pre-wrap;   /* Opera 7 */
 	      	   white-space: pre-wrap;      /* CSS3 */
 	      	   word-wrap: break-word;      /* IE 5.5+ */ }
	</style></head><body><div class="note" id="install nodejs"><a name="install nodejs"></a><a style="color:#204A87" href="../mongodb/Install.html">install</a><h1> nodejs</h1>
sudo apt-get update
sudo apt-get <a style="color:#204A87" href="../mongodb/Install.html">install</a> python-software-properties python g++ make
sudo add-apt-repository ppa:chris-lea/node.js
sudo apt-get update
sudo apt-get <a style="color:#204A87" href="../mongodb/Install.html">install</a> nodejs

It installs current stable Node on the current stable Ubuntu. Quantal (12.10) users may need to <a style="color:#204A87" href="../mongodb/Install.html">install</a> the software-properties-common package for the add-apt-repository command to work: sudo apt-get <a style="color:#204A87" href="../mongodb/Install.html">install</a> software-properties-common


reinstall node
remove <a style="color:#3465A4" href="/usr/local/bin">/usr/local/bin</a> (lib,include)下面当node，node_modules</div></body></html>